﻿using System;
using System.IO;
using System.Net.Mail;
using System.Web;
using System.Web.Mvc;
using Animoso.Web.Controllers;
using StructureMap;

namespace Animoso.Web.IoC
{
    public class DependencyControllerFactory : DefaultControllerFactory
    {
        protected override IController GetControllerInstance(System.Web.Routing.RequestContext requestContext, Type controllerType)
        {
            return ObjectFactory.GetInstance(controllerType) as Controller;
        }
    }
}
